package com.doraemon.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/***
 * 阿里云OSS配置实体类
 */
@Component
@ConfigurationProperties(prefix = "doraemon.aliyun") // // 将配置文件中配置项的值自动的注入到对象的属性中，prefix属性来指定配置参数项的前缀
@Data
public class AliOssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
